 <%@ page language="java" contentType="text/javascript; charset=UTF-8"
	pageEncoding="UTF-8"%>

function getData() {
		var data = {phnumber:$('#phonenum').val()};
		var r =  /^\+?[1-9][0-9]*$/;
		r.test(data);
		alert(r.test(data));
		if (data!=null) {
			var headers = {};
			 headers['__RequestVerificationToken'] = $("#CSRFToken").val();
			 $.ajax({
			 type: "POST",
			 contentType: "application/x-www-form-urlencoded; charset=utf-8",
			 headers: headers,
			 cache: false,
			 data:{phnumber:$('#phonenum').val()},
			 url: "${pageContext.request.contextPath}/corpinfo/checkone.do",
			 dataType:"json",
			 async: true,
			 error: function(data, error) {alert(",,,,")},
			 success: function(data)
			 { 
				
				alert(data);
				$('#tablecorp').datagrid('loadData',data)
				$('#tablecorp').datagrid('reload');
				 //重新渲染easyui
				 //$.parser.parse($('#tablecorp').parent())
				 
			 }
 
			})
		}else {
			alert("请输入 正确号码");
		}

	}
	